<html encoding="UTF-8">
<link href='../../insumos/Scripts/styles.css' rel='stylesheet' type='text/css' />
<div id='midiv5'></div>
<br />
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="texto">
  <tr>
    <td height="30" colspan="3" background="/insumos/img/fondo1.jpg" class="texto"><div align="right"><strong>PRODUCTO - Actualizar Precio Manualmente&nbsp;&nbsp; </strong></div></td>
  </tr>
  <tr>
    <td height="20" colspan="3">&nbsp;</td>
  </tr>
  
</table>

  <br>
  <?php echo form_remote_tag("lista/actualizar_precio","update: midiv5") ?>
</div>
<table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EFEFEF">
  <tr>
    <td><br>
      <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0" class="texto">
      <tr>
    <td height="30" valign="top"><div>
      <div align="center" class="texto">
        <strong>
        <?
echo "Rubro:&nbsp;";?> 
        </strong>
        <select name="select" id='rubro_id' >
          <option>Seleccione un...</option>
          <? foreach($Rubro->find("order: nombre asc") as $rubro): ?>
          <option value='<?php echo $rubro->id; ?>'> <?php echo $rubro->nombre; ?></option>
          <? endforeach; ?>
        </select>
      </div>
    </div></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
       <tr>
    <td colspan="2" valign="middle"><div id='div_producto' align="center">
      
    </div></td>
  </tr>
       <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
     
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><div align="right"><strong>Precio Nuevo:&nbsp;&nbsp;</strong></div></td>
        <td bgcolor="#FFFFFF"><? echo numeric_field_tag("precio_actualizar", "size: 10")?></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><div align="right"><strong>Precio Nuevo Lista 4:&nbsp;&nbsp;</strong></div></td>
        <td bgcolor="#FFFFFF"><? echo numeric_field_tag("precio_lista_4", "size: 10")?></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><div align="right"><strong>Precio Nuevo Lista 2:&nbsp;&nbsp;</strong></div></td>
        <td bgcolor="#FFFFFF"><? echo numeric_field_tag("precio_lista_2", "size: 10")?></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><div align="right"><strong>Precio Nuevo Lista 5:&nbsp;&nbsp;</strong></div></td>
        <td bgcolor="#FFFFFF"><? echo numeric_field_tag("precio_lista_5", "size: 10")?></td>
      </tr>
  <td>&nbsp; </td>
  <td>&nbsp;</td>
      </tr>
  <tr>
    <td colspan="2"><div align="center"><?php echo submit_tag("Actualizar") ?></div></td>
	</tr>
    </table>
    <?php echo end_form_tag() ?></td>
  </tr>
</table>
<br>
<br>
<table width='80%' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td height='30' background='/insumos/img/fondo1.jpg' class="link">&nbsp;&nbsp;<a href='javascript:history.back();' class="link">&lt;&lt; Volver</a></td>
  </tr>
</table>
</html>

<div align="center">
  <script type="text/javascript">
 new Event.observe("rubro_id", "change", function(){
 new AJAX.viewRequest({
 action: "venta/obtener_productos/"+$F("rubro_id"),
 container: "div_producto"
 })
 })
</script>